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

From Issuepedia
Jump to navigation Jump to search
(using title as sorting key for category, since category can't be made to group by something useful like year/month)
m (so this won't generate an unwanted category... hopefully)
 
(26 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>
 
 
 
<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>
 
===full text===</let>
 
  <let name=wtTextShort>
 
===short 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>
 
</xploop>
 
 
 
<if flag=docat>
 
  <let name=cattag>[[category:data/links|</let>
 
  <let name=cattag append copy=data[Title] />
 
  <let name=cattag append>]]</let>
 
</if>
 
 
 
</hide>__NOEDITSECTION__
 
==Specs==
 
{|
 
|-
 
| align=right | '''Date''': || <get name=wtDate />
 
|-
 
| align=right | '''Link''': || <get name=wtLink />
 
|-
 
| 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