Jump to: navigation, search

PDMLink

This template supports conditionalized links in the PDMs, since it's not possible to use a switch that adjusts for the RDBMS-specific manual in links inside content stored in Cargo (because Cargo parses the switch before storing an effectively hard-coded link).

The template requires the |targetPage parameter to be specified. The template also accepts an optional |anchor parameter. The remainder of the link syntax is effectively hard-coded in Cargo to yield RDBMS-specific links in parentheses, so the display text will read like: "...(for Microsoft SQL Server, Oracle, and PostgreSQL, respectively)...." The template switches for ICON to include a DB2 link as well.

The template was modified in November 2020 to cover template calls from RNs. There is now a preliminary switch on the manual name to call a supplementary formatting template, Template:PDMLinkFromRN, if the manual is an RN. Initially, the switch is specific for the GIM RN (gim85rn); the supplementary template will need to be extended if there are {{PDMLink}} template calls in the RAA or other RNs.

Content is:

(for {{#switch:{{#explode:{{FULLPAGENAME}}|:|2}}|gim85rn={{PDMLinkFromRN|targetPage={{{targetPage}}}|anchor={{{anchor|}}}}}|#default=
{{#switch:{{#explode:{{FULLPAGENAME}}|:|1}}|ICON=[[Documentation:{{#explode:{{FULLPAGENAME}}|:|1}}:PDMDB2:{{{targetPage}}}:{{#switch:{{lc:{{#sub:{{FULLPAGENAME}}|-5}}}}|draft={{#explode:{{FULLPAGENAME}}|:|4}}|#default=8.1.5}}{{#if:{{{anchor|}}}|#{{{anchor}}}|}}|DB2]], |#default=}}[[Documentation:{{#explode:{{FULLPAGENAME}}|:|1}}:PDMMS:{{{targetPage}}}:{{#switch:{{lc:{{#sub:{{FULLPAGENAME}}|-5}}}}|draft={{#explode:{{FULLPAGENAME}}|:|4}}|#default={{#switch:{{#explode:{{FULLPAGENAME}}|:|1}}|GIM=Current|ICON=8.1.5|RAA=8.5.0}}}}{{#if:{{{anchor|}}}|#{{{anchor}}}|}}|Microsoft SQL Server]], [[Documentation:{{#explode:{{FULLPAGENAME}}|:|1}}:PDMOra:{{{targetPage}}}:{{#switch:{{lc:{{#sub:{{FULLPAGENAME}}|-5}}}}|draft={{#explode:{{FULLPAGENAME}}|:|4}}|#default={{#switch:{{#explode:{{FULLPAGENAME}}|:|1}}|GIM=Current|ICON=8.1.5|RAA=8.5.0}}}}{{#if:{{{anchor|}}}|#{{{anchor}}}|}}|Oracle]], or [[Documentation:{{#explode:{{FULLPAGENAME}}|:|1}}:PDMPostgre:{{{targetPage}}}:{{#switch:{{lc:{{#sub:{{FULLPAGENAME}}|-5}}}}|draft={{#explode:{{FULLPAGENAME}}|:|4}}|#default={{#switch:{{#explode:{{FULLPAGENAME}}|:|1}}|GIM=Current|ICON=8.1.5|RAA=8.5.0}}}}{{#if:{{{anchor|}}}|#{{{anchor}}}|}}|PostgreSQL]]
}}, respectively)


(for [[Documentation:PDMLink:PDMMS:{{{targetPage}}}:|Microsoft SQL Server]], [[Documentation:PDMLink:PDMOra:{{{targetPage}}}:|Oracle]], or [[Documentation:PDMLink:PDMPostgre:{{{targetPage}}}:|PostgreSQL]], respectively)

This page was last edited on November 10, 2020, at 22:49.
Comments or questions about this documentation? Contact us for support!