Template:Navbox literature: Difference between revisions
m (fixed tt usage and double sup tags) |
m (title should also be translated) |
||
Line 9: | Line 9: | ||
{{Translation guide|<syntaxhighlight lang="html"> | {{Translation guide|<syntaxhighlight lang="html"> | ||
{{#switch: {{{1|}}} | {{#switch: {{{1|}}} | ||
| literature = Literature | |||
| leisure = Leisure | | leisure = Leisure | ||
| cartography = Cartography | | cartography = Cartography | ||
Line 23: | Line 24: | ||
}} | }} | ||
{{ll|Category:Navbox}}</noinclude><includeonly>{{Navbox | {{ll|Category:Navbox}}</noinclude><includeonly>{{Navbox | ||
| title = {{ll|:Category:Literature|Literature}} | | title = {{ll|:Category:Literature|{{tt|name=Navbox literature|default=Literature|arg1=literature}}}} | ||
| content = {{Navbox/row | | content = {{Navbox/row | ||
| group = {{tt|name=Navbox literature|default=Leisure|arg1=leisure}} | | group = {{tt|name=Navbox literature|default=Leisure|arg1=leisure}} |
Revision as of 12:58, 4 January 2024
This template should be transcluded at the bottom of all literature pages.
Usage
How to translate
This template is translatable.
Template code
Paste the following code into the <includeonly>
tag of the translated template and translate the text after each =
sign (except for #default =
).
{{#switch: {{{1|}}}
| literature = Literature
| leisure = Leisure
| cartography = Cartography
| recipe_magazine = Recipe magazine
| skill_book = Skill book
| writable = Writable
| #default = [[Category:Incorrect template usage]]
}}
Template documentation
Copy the code wrapped in the <noinclude>
tag in this template and translate the text after doc =
in the {{Documentation}}
template.
{{Translation guide}}
template should be removed from the translated documentation.