Module:Category main article/doc: Difference between revisions

Content deleted Content added
Create new #Text output detailing how to translate the string outputted by the module
 
Line 57:
 
This module uses [[Module:Hatnote]] to format the hatnote text.
 
=== Text output ===
This module has five lines that must be translated when exported to wikis in other languages.
 
{| class="wikitable sortable"
|-
! scope="col" | Variable
! scope="col" | Code
! scope="col" colspan="2" | Translatable text
|-
! scope="row" rowspan="3" | {{Code|pagetype}}
| {{Code|lang=html+handlebars|1=
pagetype = yesno(options.article) ~= false and 'article' or 'page'
}}
| {{Code|1=article}}
| {{Code|1=page}}
|-
| {{Code|lang=html+handlebars|1=
pagetype = mw.title.new(page).namespace == 0 and "article" or "page"
}}
| {{Code|1=article}}
| {{Code|1=page}}
|-
| {{Code|lang=html+handlebars|1=
pagetype = "article"
}}
| colspan="2" | {{Code|1=article}}
|-
! scope="row" rowspan="2" | {{Code|stringToFormat}}
| {{Code|lang=html+handlebars|1=
stringToFormat = 'The main %ss for this [[Help:Categories|category]] are %s.'
}}
| colspan="2" | {{Code|1=The main %ss for this [[Help:Categories|category]] are %s.}}
|-
| {{Code|lang=html+handlebars|1=
stringToFormat = 'The main %s for this [[Help:Categories|category]] is %s.'
}}
| colspan="2" | {{Code|1=The main %s for this [[Help:Categories|category]] is %s.}}
|}
 
<includeonly>{{sandbox other||