Difference between revisions of "Issuepedia:Code/show/link"

From Issuepedia
Jump to navigation Jump to search
(adding source and author display (hope this works))
m (so this won't generate an unwanted category... hopefully)
 
(18 intermediate revisions by the same user not shown)
Line 1: Line 1:
<hide>
+
<includeonly><call ShowLinkData /></includeonly>
<let name=wtDate>[[</let>
 
<let name=wtDate append copy=data[Date] />
 
<let name=wtDate append>]] ([[:category:</let>
 
<let name=wtDate append copy=data[Date] />
 
<let name=wtDate append>|category]])</let>
 
 
 
<if flag=data[Author]>
 
  <let name=wtAuth>[[</let>
 
  <let name=wtAuth append copy=data[Author]/>
 
  <let name=wtAuth append>/writings]] ([[:category:</let>
 
  <let name=wtAuth append copy=data[Author] />
 
  <let name=wtAuth append>/writings|category]])</let>
 
</if>
 
 
 
<if flag=data[Source]>
 
  <let name=wtSource>[[</let>
 
  <let name=wtSource append copy=data[Source] />
 
  <let name=wtSource append>/articles]] ([[:category:</let>
 
  <let name=wtSource append copy=data[Source] />
 
  <let name=wtSource append>/articles|category]])</let>
 
</if>
 
 
 
<if flag=docat>
 
  <let name=wtDate append>[[category:</let>
 
  <let name=wtDate append copy=data[Date] />
 
  <let name=wtDate append>]]</let>
 
 
 
  <let name=wtAuth append>[[category:</let>
 
  <let name=wtAuth append copy=data[Author]</let>
 
  <let name=wtAuth append>/writings]]</let>
 
 
 
  <let name=wtSource append>[[category:</let>
 
  <let name=wtSource append copy=data[Source]</let>
 
  <let name=wtSource append>/articles]]</let>
 
</if>
 
 
 
<let name=wtTitle>__NOEDITSECTION__
 
==</let>
 
<let name=wtTitle append copy=data[Title] />
 
<let name=wtTitle append>==</let>
 
<if flag=data[TextShort]>
 
  <let name=wtTitle append>
 
===longer text===</let>
 
  <let name=wtTextShort>
 
===shorter text===
 
</let>
 
  <let name=wtTextShort append copy=data[TextShort] />
 
</if><else>
 
  <let name=wtTextShort />
 
</else>
 
 
 
<if flag=data[wpage]>
 
  <let name=wtLink>[[</let>
 
  <let name=wtLink append copy=data[wpage] />
 
  <let name=wtLink append>]]</let>
 
</if><else>
 
  <let name=wtLink append copy=data[URL] />
 
</else>
 
<let name=topics copy=data[Topics] />
 
<xploop list=$topics var=topic>
 
  <let name=wtTopics append> [[</let>
 
  <let name=wtTopics append copy=topic />
 
  <let name=wtTopics append>]]</let>
 
 
 
  <let name=wtCatgs append> [[:category:</let>
 
  <let name=wtCatgs append copy=topic />
 
  <let name=wtCatgs append>|</let>
 
  <let name=wtCatgs append copy=topic />
 
  <let name=wtCatgs append>]]</let>
 
 
 
  <if flag=docat>
 
    <let name=wtCatgs append> [[category:</let>
 
    <let name=wtCatgs append copy=topic />
 
    <let name=wtCatgs append>]]</let>
 
  </if>
 
</xploop>
 
 
 
 
 
<if flag=data[TitlePlain]>
 
  <let name=TitleSort copy=data[TitlePlain] />
 
</if><else>
 
  <let name=TitleSort copy=data[Title] />
 
</else>
 
<if flag=docat>
 
  <let name=cattag>[[category:data/links|</let>
 
  <let name=cattag append copy=TitleSort />
 
  <let name=cattag append>]]</let>
 
</if>
 
 
 
</hide>__NOEDITSECTION__
 
==Specs==
 
{|
 
|-
 
| align=right | '''Date''': || <get name=wtDate />
 
|-
 
| align=right | '''Link''': || <get name=wtLink />
 
<if flag=wtAuth>|-
 
| align=right || '''Author''': || <get name=wtAuth /></if>
 
<if flag=wtSource>|-
 
| align=right || ''Source''': || <get name=wtSource /></if>
 
|-
 
| align=right | '''Topics''': || <get name=wtTopics />
 
|-
 
| align=right | '''Categories''': || <get name=wtCatgs />
 
|}
 
<get name=wtTitle />
 
<get name=data index=Text /><get name=wtTextShort /><get name=cattag />
 

Latest revision as of 22:05, 27 May 2019