Difference between revisions of "Template:ListingFields/with custom links"
(Created page with "<includeonly><!-- Same as Listing fields, but skip argument 1: we assume it's the default page title, and the nice title (without language header) is actually given as argumen...") |
m (When link for lists is empty, fal back in the default non-nice link) |
||
Line 1: | Line 1: | ||
<includeonly><!-- | <includeonly><!-- | ||
Same as Listing fields, but skip argument 1: we assume it's the default page title, and the nice title (without language header) is actually given as argument 2. | Same as Listing fields, but skip argument 1: we assume it's the default page title, and the nice title (without language header) is actually given as argument 2. | ||
− | -->{{ListingFields|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}}}</includeonly><noinclude> | + | -->{{ListingFields|{{{2|{{{1}}}}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}}}</includeonly><noinclude> |
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Latest revision as of 10:22, 31 January 2020
[edit] [ ] Template documentation
This is an alternative to Template:ListingFields that skips the first argument.
It's intended use-case is translated lists. Items in translated lists have names like "something (Українська)", which is not something we want to show.
So, use Property:Link for lists to add the user-visible name on translated elements (replace love.load with your page):
{{#set:Link for lists=[[love.load (Українська)|love.load]]}}
And then add ?Link for lists
as the first queried property, and add this template, like this:
{{#ask: [[Category:Callbacks]] [[Subcategory::General]] [[parent::love_(Українська)]] [[Concept:Current]] | headers=hide | format=template | template=ListingFields/with custom links | introtemplate=ListingIntro | outrotemplate=ListingOutro | ?Link for lists | ?Description | ?PrettySince | ?PrettyRemoved }}
The resulting list should have nice links without the language identifier.
The above documentation is transcluded from Template:ListingFields/with custom links/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |