Template:Userbox Scenario/doc: Difference between revisions
m (→Usage: De-coded everything under the template example for clarity.) |
(→Examples: Highlighted rows that serve as examples of "correct" formatting, removed one redundant example, changed an existing example to link to a custom-made scenario that has no article, and added extra columns to show the code used, as well as details on why the input(s) is/are correct/wrong.) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
==Usage== |
|||
This template allows you to display your favourite scenario as a userbox on your own user page. Add the highlighted line below to your own userpage, replacing <code>''<scenario>''</code> with '''the scenario name''' and, optionally, <code>''<theme>''</code> with '''a park entrance theme''': |
This template allows you to display your favourite scenario as a userbox on your own user page. Add the highlighted line below to your own userpage, replacing <code>''<scenario>''</code> with '''the scenario name''' and, optionally, <code>''<theme>''</code> with '''a park entrance theme''': |
||
Line 10: | Line 9: | ||
''<scenario>'' '''must''' be entered '''before''' ''<theme>''; the two fields cannot be switched around under any circumstances. |
''<scenario>'' '''must''' be entered '''before''' ''<theme>''; the two fields cannot be switched around under any circumstances. |
||
==Examples== |
|||
Rows shaded in green are examples of correct inputs; cells shaded in red are examples of incorrect inputs. |
|||
{| class="wikitable" |
{| class="wikitable" |
||
! ''<scenario>'' |
! ''<code><scenario></code>'' |
||
! ''<theme>'' |
! ''<code><theme></code>'' |
||
! Input |
|||
! Result |
! Result |
||
! Details |
|||
|- |
|||
|- style="background: #98FB98;" |
|||
| Mel's World |
|||
| (blank) |
| (blank) |
||
|{{Userbox Scenario|Mel's World}} |
| <code><nowiki>{{Userbox Scenario|Mel's World}}</nowiki></code> |
||
⚫ | |||
|- |
|||
| Standard, correct input; although ''<code><theme></code>'' is not specified, the scenario uses the Traditional Park Entrance (which is the default image used). |
|||
⚫ | |||
|- style="background: #98FB98;" |
|||
⚫ | |||
| North America Park Entrance |
| North America Park Entrance |
||
|{{Userbox Scenario|Grand Canyon|North America Park Entrance}} |
| <code><nowiki>{{Userbox Scenario|Grand Canyon|North America Park Entrance}}</nowiki></code> |
||
⚫ | |||
|- |
|||
| Standard, correct inputs, with the correct Park Entrance theme specified in ''<code><theme></code>''. |
|||
⚫ | |||
|- style="background: #98FB98;" |
|||
| Europe |
|||
| Rocky Mountain Adventure |
|||
⚫ | |||
⚫ | |||
|- |
|||
| <code><nowiki>{{Userbox Scenario|Rocky Mountain Adventure|Park Entrance Gates}}</nowiki></code> |
|||
⚫ | |||
⚫ | |||
⚫ | |||
| Standard, correct inputs, even though there is no existing article for the scenario. |
|||
⚫ | |||
|- |
|- |
||
⚫ | |||
! Gemini City |
|||
| style="background: #FA8072;" | Europe |
|||
| Futuristic Park Entrance |
|||
| style="background: #FA8072;" | <code><nowiki>{{Userbox Scenario|Renovation|Europe}}</nowiki></code> |
|||
⚫ | |||
| {{Userbox Scenario|Renovation|Europe}} |
|||
| Wrong input; ''<code><theme></code>'' should be "European Park Entrance". |
|||
|- |
|- |
||
⚫ | |||
! Cloudburst Creek |
|||
| style="background: #FA8072;" | Drak Edge Entrance |
|||
⚫ | |||
|{{Userbox Scenario| |
| style="background: #FA8072;" | <code><nowiki>{{Userbox Scenario|Castle|Drak Edge Entrance}}</nowiki></code> |
||
⚫ | |||
| Wrong input; ''<code><theme></code>'' is misspelled; should be "Dark Age Entrance". |
|||
|- |
|- |
||
| style="background: #FA8072;" | Traditional Park Entrance |
|||
| Forest Frontiers |
| style="background: #FA8072;" | Forest Frontiers |
||
|{{Userbox Scenario|Traditional Park Entrance|Forest Frontiers}} |
| style="background: #FA8072;" | <code><nowiki>{{Userbox Scenario|Traditional Park Entrance|Forest Frontiers}}</nowiki></code> |
||
| {{Userbox Scenario|Traditional Park Entrance|Forest Frontiers}} |
|||
| Wrong inputs; ''<code><scenario></code>'' and ''<code><theme></code>'' inputs are swapped. |
|||
|} |
|} |
Latest revision as of 04:07, 1 June 2021
This template allows you to display your favourite scenario as a userbox on your own user page. Add the highlighted line below to your own userpage, replacing <scenario>
with the scenario name and, optionally, <theme>
with a park entrance theme:
{{Userbox Scenario|<scenario>|<theme>}}
<scenario> accepts any text, but only scenarios with an article on this wiki with the exact same name will be displayed as a blue link.
<theme> is an optional field and only changes if you enter the full name of a park entrance theme, as it is shown on The Complete Park Entrance List. If you spell only part of the park entrance theme's full name, spell the name of the park entrance theme wrong, or do not enter any text, the template will use the Traditional Park Entrance as its picture.
<scenario> must be entered before <theme>; the two fields cannot be switched around under any circumstances.
Examples
Rows shaded in green are examples of correct inputs; cells shaded in red are examples of incorrect inputs.
<scenario>
|
<theme>
|
Input | Result | Details | ||
---|---|---|---|---|---|---|
Mel's World | (blank) | {{Userbox Scenario|Mel's World}}
|
|
Standard, correct input; although <theme> is not specified, the scenario uses the Traditional Park Entrance (which is the default image used).
| ||
Grand Canyon | North America Park Entrance | {{Userbox Scenario|Grand Canyon|North America Park Entrance}}
|
|
Standard, correct inputs, with the correct Park Entrance theme specified in <theme> .
| ||
Rocky Mountain Adventure | Park Entrance Gates | {{Userbox Scenario|Rocky Mountain Adventure|Park Entrance Gates}}
|
|
Standard, correct inputs, even though there is no existing article for the scenario. | ||
Renovation | Europe | {{Userbox Scenario|Renovation|Europe}}
|
|
Wrong input; <theme> should be "European Park Entrance".
| ||
Castle | Drak Edge Entrance | {{Userbox Scenario|Castle|Drak Edge Entrance}}
|
|
Wrong input; <theme> is misspelled; should be "Dark Age Entrance".
| ||
Traditional Park Entrance | Forest Frontiers | {{Userbox Scenario|Traditional Park Entrance|Forest Frontiers}}
|
|
Wrong inputs; <scenario> and <theme> inputs are swapped.
|