Surface-assisted covalent synthesis currently evolves into an important approach for the fabrication of functional nanostructures at interfaces. Here, we employ scanning tunneling microscopy to investigate the homocoupling reaction of linear, terminal alkyne-functionalized polyphenylene building-blocks on noble metal surfaces under ultrahigh vacuum. On the flat Ag(111) surface, thermal activation triggers a variety of side-reactions resulting in irregularly branched polymeric networks. Upon alignment along the step-edges of the Ag(877) vicinal surface drastically improves the chemoselectivity of the linking process permitting the controlled synthesis of extended-graphdiyne wires with lengths reaching 30 nm. The ideal hydrocarbon scaffold is characterized by density functional theory as a 1D, direct band gap semiconductor material with both HOMO and LUMO-derived bands promisingly isolated within the electronic structure. The templating approach should be applicable to related organic precursors and different reaction schemes thus bears general promise for the engineering of novel low-dimensional carbon-based materials.