Template:Feature: Difference between revisions

From questden
Jump to navigationJump to search
No edit summary
(adding alt-title function to featured template)
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
<noinclude>This template is intended to make altering [[Template:Featured Article]] easier, and allow easy titlecard linking in the same manner as the infobox template.  Takes arguments:
<noinclude>This template is intended to make altering [[Template:Featured Article]] easier, and allow easy titlecard linking in the same manner as the infobox template.  Takes arguments:
;title:The title should be the wiki article for the quest, since it will be used as a link target.
;title:The title should be the wiki article for the quest, since it will be used as a link target.
;titlealt:Displays an alternate name for the quest in case you want to do that.
;author:Quest author, will be used as a link target.
;author:Quest author, will be used as a link target.
;authorext:Extra authors, use a format like <tt>and <nowiki>[[Name]]</nowiki></tt> or <tt>et. al.</tt>
;authorext:Extra authors, use a format like <tt>and <nowiki>[[Name]]</nowiki></tt> or <tt>et. al.</tt>
;image:Filename for a titlecard hosted on the wiki.
;image:Filename for a titlecard hosted on the wiki.
;imageext:Post number for a titlecard taken from the board.
;imageext:Post number for a titlecard taken from the board.
;text:Explanatory blurb about the quest.</noinclude><includeonly>{{#if:{{{image|}}}|[[image:{{{image}}}|right|200px]]|}}<!-- on-wiki, then off-wiki
;text:Explanatory blurb about the quest.</noinclude><includeonly>{{#if:{{{image|}}}|[[image:{{{image}}}|right|250px]]|}}<!-- on-wiki, then off-wiki
-->{{#if:{{{imageext|}}}|<div style="float: right"><span class="plainlinks">[http://tgchan.org/kusaba/image-for/{{{imageextboard|quest}}}/{{{imageext}}} http://tgchan.org/kusaba/thumb-for/{{{imageextboard|quest}}}/{{{imageext}}}.png]</span></div>|}}<!-- auto fallback  
-->{{#if:{{{imageext|}}}|<div style="float: right"><span class="plainlinks">[http://tgchan.org/kusaba/image-for/{{{imageextboard|quest}}}/{{{imageext}}} http://tgchan.org/kusaba/thumb-for/{{{imageextboard|quest}}}/{{{imageext}}}.png]</span></div>|}}<!-- auto fallback  
--><center>'''[[{{{title}}}]]''' by [[{{{author}}}]]{{#if:{{{authorext|&nbsp;}}}|</center>
--><center>'''[[{{{title}}}{{#if:{{{titlealt|}}}|{{!}}{{{titlealt}}}}}]]''' by [[{{{author}}}]]{{#if:{{{authorext|}}}|&nbsp;{{{authorext}}}|}}</center>


{{{text|}}}</includeonly>
{{{text|}}}</includeonly><noinclude>[[Category:Templates]]</noinclude>

Latest revision as of 16:01, 2 September 2023

This template is intended to make altering Template:Featured Article easier, and allow easy titlecard linking in the same manner as the infobox template. Takes arguments:

title
The title should be the wiki article for the quest, since it will be used as a link target.
titlealt
Displays an alternate name for the quest in case you want to do that.
author
Quest author, will be used as a link target.
authorext
Extra authors, use a format like and [[Name]] or et. al.
image
Filename for a titlecard hosted on the wiki.
imageext
Post number for a titlecard taken from the board.
text
Explanatory blurb about the quest.