Template:Guide: Difference between revisions
Appearance
mNo edit summary |
No edit summary |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 11: | Line 11: | ||
"type": "string", | "type": "string", | ||
"suggestedvalues": [ | "suggestedvalues": [ | ||
" | "Beginner", | ||
" | "Novice", | ||
" | "Intermediate", | ||
" | "Advanced", | ||
" | "Expert" | ||
], | ], | ||
"autovalue": " | "autovalue": "Intermediate", | ||
"required": true, | "required": true, | ||
"default": " | "default": "Intermediate" | ||
} | } | ||
}, | }, | ||
| Line 29: | Line 29: | ||
} | } | ||
</templatedata> | </templatedata> | ||
{{Tier|Beginner|1}} | |||
{{Tier|Novice|2}} | |||
{{Tier|Intermediate|3}} | |||
{{Tier|Advanced|4}} | |||
{{Tier|Expert|5}} | |||
{{#cargo_declare:_table=Guides | {{#cargo_declare:_table=Guides | ||
|Guide=String | |Guide=String | ||
|Tier=String (allowed values= | |Tier=String (allowed values=Beginner,Novice,Intermediate,Advanced,Expert) | ||
|Page=Page}} | |Page=Page}} | ||
</noinclude> | </noinclude> | ||
<includeonly> | <includeonly><templatestyles src="Guide/styles.css" /> | ||
{{#cargo_store:_table=Guides | {{#cargo_store:_table=Guides | ||
|Tier = {{{0}}} | |Tier = {{{0}}} | ||
| Line 40: | Line 45: | ||
|Page = {{PAGENAME}} | |Page = {{PAGENAME}} | ||
}}<div class="guide"><p>This is {{#switch: {{{0}}} | }}<div class="guide"><p>This is {{#switch: {{{0}}} | ||
| | |Beginner = a '''Beginner | ||
| | |Novice = a '''Novice | ||
| | |Intermediate = an '''Intermediate | ||
| | |Advanced = an '''Advanced | ||
| | |Expert = '''an Expert | ||
|an ''' | |an '''Intermediate}} difficulty''' guide. All versions:</p> | ||
<ul>{{#cargo_query: | <ul>{{#cargo_query:tables=Guides=G,Tiers=T | ||
|fields=Tier,Page | |join on=G.Tier=T.Tier | ||
|where=Guide="{{#titleparts: {{PAGENAME}} | 1}}" | |fields=G.Tier,G.Page | ||
|where=G.Guide="{{#titleparts: {{PAGENAME}} | 1}}" | |||
|order by=T.DisplayOrder | |||
|format=template | |format=template | ||
|template=Guide link li}}</ul></div></includeonly> | |template=Guide link li}}</ul></div></includeonly> | ||
Latest revision as of 02:22, 17 June 2026
Mark a page as a Guide, and specify the tier of difficulty
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Tier | 0 tier | The difficulty tier of this guide
| String | required |
This template defines the table "Guides". View table.